/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package GUI;

import GUI.Pagina_Consulta_EventoW;
import GUI.Pagina_Creacion_EventoW;
import GUI.Pagina_Modificar_EventoW;
import java.awt.Dimension;
import java.awt.Toolkit;
import javax.swing.JComponent;
import javax.swing.SwingConstants;

/**
 *
 * @author Fracisco
 */
public class Pagina_PrincipalW extends javax.swing.JFrame {

    /**
     * Creates new form Pagina_PrincipalW
     */
    public Pagina_PrincipalW() 
    {
        initComponents();
 
    }
    

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jLayeredPane1 = new javax.swing.JLayeredPane();
        jLabel1 = new javax.swing.JLabel();
        jLabel2 = new javax.swing.JLabel();
        jTabbedPane1 = new javax.swing.JTabbedPane();
        jLayeredPane2 = new javax.swing.JLayeredPane();
        jBAsignar_Empleado = new javax.swing.JButton();
        jBConusltar_Empleado = new javax.swing.JButton();
        jBRegistrar_Empleado = new javax.swing.JButton();
        jLayeredPane3 = new javax.swing.JLayeredPane();
        jLayeredPane5 = new javax.swing.JLayeredPane();
        jBConsultar = new javax.swing.JButton();
        jBRegistrar = new javax.swing.JButton();
        jBConsultar1 = new javax.swing.JButton();
        jLayeredPane4 = new javax.swing.JLayeredPane();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

        jLayeredPane1.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
        jLayeredPane1.setMaximumSize(new java.awt.Dimension(441, 300));
        jLayeredPane1.setMinimumSize(new java.awt.Dimension(441, 300));
        jLabel1.setBounds(0, 0, 0, 120);
        jLayeredPane1.add(jLabel1, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLabel2.setText("jLabel2");
        jLabel2.setBounds(110, 0, 330, 120);
        jLayeredPane1.add(jLabel2, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jBAsignar_Empleado.setText("Asignar");
        jBAsignar_Empleado.setBounds(210, 20, 90, 60);
        jLayeredPane2.add(jBAsignar_Empleado, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jBConusltar_Empleado.setText("Consultar");
        jBConusltar_Empleado.setBounds(110, 20, 90, 60);
        jLayeredPane2.add(jBConusltar_Empleado, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jBRegistrar_Empleado.setText("Registrar");
        jBRegistrar_Empleado.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jBRegistrar_EmpleadoActionPerformed(evt);
            }
        });
        jBRegistrar_Empleado.setBounds(10, 20, 90, 60);
        jLayeredPane2.add(jBRegistrar_Empleado, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jTabbedPane1.addTab("Personal", jLayeredPane2);

        jLayeredPane5.setBorder(javax.swing.BorderFactory.createTitledBorder(""));

        jBConsultar.setText("Consultar Evento");
        jBConsultar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jBConsultarActionPerformed(evt);
            }
        });
        jBConsultar.setBounds(130, 10, 120, 30);
        jLayeredPane5.add(jBConsultar, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jBRegistrar.setText("Crear Evento");
        jBRegistrar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jBRegistrarActionPerformed(evt);
            }
        });
        jBRegistrar.setBounds(10, 10, 97, 30);
        jLayeredPane5.add(jBRegistrar, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jBConsultar1.setText("Modificar Evento");
        jBConsultar1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jBConsultar1ActionPerformed(evt);
            }
        });
        jBConsultar1.setBounds(70, 50, 120, 30);
        jLayeredPane5.add(jBConsultar1, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLayeredPane5.setBounds(80, 10, 260, 100);
        jLayeredPane3.add(jLayeredPane5, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jTabbedPane1.addTab("Evento", jLayeredPane3);
        jTabbedPane1.addTab("Reporte", jLayeredPane4);

        jTabbedPane1.setBounds(10, 130, 420, 150);
        jLayeredPane1.add(jTabbedPane1, javax.swing.JLayeredPane.DEFAULT_LAYER);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jLayeredPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 441, javax.swing.GroupLayout.PREFERRED_SIZE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jLayeredPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 300, javax.swing.GroupLayout.PREFERRED_SIZE)
        );

        java.awt.Dimension screenSize = java.awt.Toolkit.getDefaultToolkit().getScreenSize();
        setBounds((screenSize.width-457)/2, (screenSize.height-338)/2, 457, 338);
    }// </editor-fold>//GEN-END:initComponents

    private void jBConsultarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jBConsultarActionPerformed
        
        Pagina_Consulta_EventoW nueva_ventana = new Pagina_Consulta_EventoW();
        nueva_ventana.setVisible(true);
        this.dispose();
        
    }//GEN-LAST:event_jBConsultarActionPerformed

    private void jBRegistrar_EmpleadoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jBRegistrar_EmpleadoActionPerformed
        
        Pagina_Creacion_PersonalW nueva_ventana = new Pagina_Creacion_PersonalW();
        nueva_ventana.setVisible(true);
        this.dispose();
        
    }//GEN-LAST:event_jBRegistrar_EmpleadoActionPerformed

    private void jBRegistrarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jBRegistrarActionPerformed
        
        Pagina_Creacion_EventoW nueva_ventana = new Pagina_Creacion_EventoW();
        nueva_ventana.setVisible(true);
        this.dispose();
        
    }//GEN-LAST:event_jBRegistrarActionPerformed

    private void jBConsultar1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jBConsultar1ActionPerformed
        Pagina_Modificar_EventoW nueva_ventana = new Pagina_Modificar_EventoW();
        this.dispose();
        nueva_ventana.setVisible(true);
    }//GEN-LAST:event_jBConsultar1ActionPerformed

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /*
         * Set the Nimbus look and feel
         */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /*
         * If Nimbus (introduced in Java SE 6) is not available, stay with the
         * default look and feel. For details see
         * http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(Pagina_PrincipalW.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(Pagina_PrincipalW.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(Pagina_PrincipalW.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(Pagina_PrincipalW.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>

        /*
         * Create and display the form
         */
        java.awt.EventQueue.invokeLater(new Runnable() {

            public void run() {
                new Pagina_PrincipalW().setVisible(true);
            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton jBAsignar_Empleado;
    private javax.swing.JButton jBConsultar;
    private javax.swing.JButton jBConsultar1;
    private javax.swing.JButton jBConusltar_Empleado;
    private javax.swing.JButton jBRegistrar;
    private javax.swing.JButton jBRegistrar_Empleado;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLayeredPane jLayeredPane1;
    private javax.swing.JLayeredPane jLayeredPane2;
    private javax.swing.JLayeredPane jLayeredPane3;
    private javax.swing.JLayeredPane jLayeredPane4;
    private javax.swing.JLayeredPane jLayeredPane5;
    private javax.swing.JTabbedPane jTabbedPane1;
    // End of variables declaration//GEN-END:variables
}
